<template>
  <div class="about">
    <label>用户名</label>
    <input v-model="username"/><br/>

    <label>密码</label>
    <input v-model="password"/>
    <button @click="login">登录</button>
  </div>
</template>
<script>
export default{
  data(){
    return{
      username:"",
      password:""
    }
  },
  methods:{
    login(){
      console.log(this.username,this.password);
      this.postRequest('/web/login',{
        username:this.username,
        password:this.password
      }).then(res=>{
        console.log(res);
      });
    }
  }
}
</script>